import { Component } from '@angular/core';

@Component({
  selector: 'app-button-loading-demo',
  templateUrl: './button-loading-demo.component.html',
  styleUrl: './button-loading-demo.component.less',
})
export class ButtonLoadingDemoComponent {
  loading1 = false;
  loading2 = false;

  load1() {
    this.loading1 = true;
    setTimeout(() => (this.loading1 = false), 2000);
  }

  load2() {
    this.loading2 = true;
    setTimeout(() => (this.loading2 = false), 3000);
  }
}
